package com.service.impl;

import com.dao.CategoryDao;
import com.pojo.ResponsePojo;
import com.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CategoryServiceImpl implements CategoryService {
    private CategoryDao categoryDao;
    @Autowired
    public void setCategoryDao(CategoryDao categoryDao) {
        this.categoryDao = categoryDao;
    }
    @Override
    public ResponsePojo findAll() {
        return new ResponsePojo(200,"查询成功",categoryDao.findAll());
    }
}
